<?PHP

	include("../../includes/configAjax.php");
		
	if($_SESSION['logged_in']==true){
		if(is_numeric($_SESSION['uid'])){
			$result = $users->getUser($db, $_SESSION['uid']);
			if($result){
				$userInfo = mysql_fetch_object($result);
				if( $userInfo->user_avatar==""){
					$variableStack['user_avatar'] ="images/no-avatar.gif";
				} else {
					$variableStack['user_avatar'] = $userInfo->user_avatar;	
				}
				$variableStack['username'] = $userInfo->username;	
				$html = file_get_contents('../../styles/'.$activeStyle.'/t/profile-user-panel.html');	
				echo parseHtml($html, $variableStack);	

			} else {
				echo "error";	
			}
		} else {
			echo "error";	
		}
	} else {
		echo "error";
	}


?>